CC = gcc
CFLAGS = -o
LIBS = -lssl -lcrypto

all: sm2 sm3 sm4

sm2: sm2.c
	$(CC) $(CFLAGS) sm2 sm2.c $(LIBS)

sm3: sm3.c
	$(CC) $(CFLAGS) sm3 sm3.c $(LIBS)

sm4: sm4.c
	$(CC) $(CFLAGS) sm4 sm4.c $(LIBS)

clean:
	rm -f sm2 sm3 sm4

